import request from '@/utils/request'

export function List(query) {
  return request({
    url: '/station/list',
    method: 'get',
    params: query
  })
}

export function Info(params) {
  return request({
    url: '/station/info',
    method: 'get',
    params: params
  })
}


export function Save(data) {
  return request({
    url: '/station/save',
    method: 'post',
    data
  })
}

export function Status(data) {
  return request({
    url: '/station/status',
    method: 'put',
    data
  })
}

export function Sort(data) {
  return request({
    url: '/station/sort',
    method: 'put',
    data
  })
}

export function Del(query) {
  return request({
    url: '/station/del',
    method: 'delete',
    params: query
  })
}

/** banner类别定义方法 */
export function Ct_List(query) {
  return request({
    url: '/station/category/list',
    method: 'get',
    params: query
  })
}

export function Ct_AllList(query) {
  return request({
    url: '/station/category/alllist',
    method: 'get',
    params: query
  })
}

export function Ct_Save(data) {
  return request({
    url: '/station/category/save',
    method: 'post',
    data
  })
}

export function Ct_Status(data) {
  return request({
    url: '/station/category/status',
    method: 'put',
    data
  })
}

export function Ct_Sort(data) {
  return request({
    url: '/station/category/sort',
    method: 'put',
    data
  })
}

export function Ct_Del(query) {
  return request({
    url: '/station/category/del',
    method: 'delete',
    params: query
  })
}
